import request from "@/utils/request";
/* 发起申请页（apply1）获取验证码 */
export function apply1ToQuerySmsCode(data) {
  return request({
    url: "/informaction/smsSendCheck.htm",
    method: "post",
    data
  });
}

/* 发起申请页（apply1）开始申请 */
export function apply1ToApply(data) {
  return request(
    {
      url: "/informaction/insAddregistr.htm",
      method: "post",
      data
    },
    false
  );
}

/* 房产-小区模糊匹配*/
export function matchCommunity(data) {
  return request({
    url: "/informaction/Matching.htm",
    method: "post",
    data
  });
}

/* 房产-楼栋单元户查询 */
export function getBuildingUnit(data) {
  return request({
    url: "/informaction/Building.htm",
    method: "post",
    data
  });
}

/* 房产-在线评估*/
export function buildingEvaluate(data) {
  return request({
    url: "/informaction/Inquiry.htm",
    method: "post",
    data
  });
}

/* 房产-提交 */
export function submitBuilding(data) {
  return request({
    url: "/landing/ApplyforInit.htm",
    method: "post",
    data
  });
}

/* 客户申请单详情 */
export function customerApplyBillDetail(data) {
  return request({
    url: "/homepage/applicationStatus.htm",
    method: "post",
    data
  });
}

/* 获取评论信息 */
export function getCommentInfo(data) {
  return request({
    url: "/homepage/custumerReviewDetail.htm",
    method: "post",
    data
  });
}

/* 提交评论 */
export function submitComment(data) {
  return request({
    url: "/homepage/custumerReview.htm",
    method: "post",
    data
  });
}

/* 追加评论 */
export function addComment(data) {
  return request({
    url: "/homepage/additional.htm",
    method: "post",
    data
  });
}

/* 取消申请 */
export function cancelApply(data) {
  return request({
    url: "/informaction/CancelChanges.htm",
    method: "post",
    data
  });
}
